package com.shirley.dbExample.repository;

import com.shirley.dbExample.entity.Salary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface SalaryRepository extends JpaRepository<Salary, Long> {

    List<Salary> findByEmployeeNumber(String employeeNumber);
}
